import request from '@/api/request'

// 首页新品首发与人气推荐
function goodsList(data){
    return request({
        method:'get',
        url:'/goods/goodsList',
        data
    })
}

// 商品详情接口
function detailaction(data){
    return request({
        method:'get',
        url:'/goods/detailaction',
        data
    })
}

// 添加收藏
function addcollect(data){
    return request({
        method:'post',
        url:'/collect/addcollect',
        data
    })
}

// 添加购物车
function addCart(data){
    return request({
        method:'post',
        url:'/cart/addCart',
        data
    })
}

export {
    goodsList,
    detailaction,
    addcollect,
    addCart
}